/**
 * 库存管理路由
 * 注意：商品相关功能已迁移到 products 模块
 */
export default [
  {
    path: '/inventory',
    meta: { requiresAuth: true },
    children: [
      {
        path: 'warehouses',
        name: 'InventoryWarehouses',
        component: () => import('@/views/inventory/Warehouses.vue'),
        meta: { title: '仓库管理' }
      },
      {
        path: 'stock',
        name: 'InventoryStock',
        component: () => import('@/views/inventory/Stock.vue'),
        meta: { title: '库存查询' }
      },
      {
        path: 'transfers',
        name: 'InventoryTransfers',
        component: () => import('@/views/inventory/Transfers.vue'),
        meta: { title: '库存调拨' }
      },
      {
        path: 'check-tasks',
        name: 'InventoryCheckTasks',
        component: () => import('@/views/inventory/CheckTasks.vue'),
        meta: { title: '盘点任务单' }
      },
      {
        path: 'check-sheets',
        name: 'InventoryCheckSheets',
        component: () => import('@/views/inventory/CheckSheets.vue'),
        meta: { title: '盘点单' }
      },
      {
        path: 'pre-inventory',
        name: 'InventoryPreInventory',
        component: () => import('@/views/inventory/PreInventory.vue'),
        meta: { title: '预盈库' }
      },
      {
        path: 'profit-loss',
        name: 'InventoryProfitLoss',
        component: () => import('@/views/inventory/ProfitLoss.vue'),
        meta: { title: '盈亏分析' }
      },
      {
        path: 'profit-loss-strategy',
        name: 'InventoryProfitLossStrategy',
        component: () => import('@/views/inventory/ProfitLossStrategy.vue'),
        meta: { title: '盈亏策略' }
      },
      {
        path: 'check-input',
        name: 'InventoryCheckInput',
        component: () => import('@/views/inventory/CheckInput.vue'),
        meta: { title: '盘点录入' }
      },
      {
        path: 'check-detail',
        name: 'InventoryCheckDetail',
        component: () => import('@/views/inventory/CheckDetail.vue'),
        meta: { title: '盘点详情' }
      },
      {
        path: 'check-statistics',
        name: 'InventoryCheckStatistics',
        component: () => import('@/views/inventory/CheckStatistics.vue'),
        meta: { title: '盘点统计' }
      },
      {
        path: 'check-dashboard',
        name: 'InventoryCheckDashboard',
        component: () => import('@/views/inventory/CheckDashboard.vue'),
        meta: { title: '盘点驾驶舱' }
      },
      {
        path: 'check-history',
        name: 'InventoryCheckHistory',
        component: () => import('@/views/inventory/CheckHistory.vue'),
        meta: { title: '盘点历史' }
      },
      {
        path: 'check-reason-library',
        name: 'InventoryCheckReasonLibrary',
        component: () => import('@/views/inventory/CheckReasonLibrary.vue'),
        meta: { title: '差异原因库' }
      },
      {
        path: 'check-planner',
        name: 'InventoryCheckPlanner',
        component: () => import('@/views/inventory/CheckPlanner.vue'),
        meta: { title: '盘点计划生成器' }
      },
      {
        path: 'check-board',
        name: 'InventoryCheckBoard',
        component: () => import('@/views/inventory/CheckBoard.vue'),
        meta: { title: '盘点任务看板' }
      },
      {
        path: 'task-profitloss',
        name: 'InventoryTaskProfitLoss',
        component: () => import('@/views/inventory/TaskProfitLoss.vue'),
        meta: { title: '任务盈亏汇总' }
      },
      {
        path: 'check-analysis',
        name: 'InventoryCheckAnalysis',
        component: () => import('@/views/inventory/CheckAnalysis.vue'),
        meta: { title: '盘点分析报告' }
      },
      {
        path: 'check-settings',
        name: 'InventoryCheckSettings',
        component: () => import('@/views/inventory/CheckSettings.vue'),
        meta: { title: '盘点参数设置' }
      },
      {
        path: 'replenish-analysis',
        name: 'InventoryReplenishAnalysis',
        component: () => import('@/views/inventory/ReplenishAnalysis.vue'),
        meta: { title: '智能补货分析' }
      },
      {
        path: 'replenish-rules',
        name: 'InventoryReplenishRules',
        component: () => import('@/views/inventory/ReplenishRules.vue'),
        meta: { title: '补货规则配置' }
      },
      {
        path: 'replenish-plan',
        name: 'InventoryReplenishPlan',
        component: () => import('@/views/inventory/ReplenishPlan.vue'),
        meta: { title: '补货计划管理' }
      }
    ]
  }
]

